#include "StdAfx.h"
#include "FacadeWrapper.h"
#include "../Recognition/Facade.h"


FacadeWrapper::FacadeWrapper(void)
	: m_facade(new Recognition::Facade)
{
}

FacadeWrapper::~FacadeWrapper(void)
{
	Destruct();
}

FacadeWrapper::!FacadeWrapper(void)
{
	Destruct();
}

void FacadeWrapper::Destruct()
{
	delete m_facade;
	m_facade=nullptr;
}

void FacadeWrapper::LoadTraingSet(const wchar_t* directory)
{
	m_facade->LoadTrainSet(directory);
}

void FacadeWrapper::CreateNewNetwork()
{
	m_facade->CreateNewNetwork();
}

void FacadeWrapper::Train()
{
	m_facade->Train();
}

double FacadeWrapper::GetTrainError()
{
	return m_facade->GetTrainError();
}

void FacadeWrapper::StopTraining()
{
	m_facade->StopTraining();
}

bool FacadeWrapper::IsNetworkValid()
{
	return m_facade->IsNetworkValid();
}

bool FacadeWrapper::IsTrainSetValid()
{
	return m_facade->IsTrainSetValid();
}

bool FacadeWrapper::IsTestSetValid()
{
	return m_facade->IsTestSetValid();
}

void FacadeWrapper::SaveNetwork(const wchar_t* fileName)
{
	return m_facade->SaveNetwork(fileName);
}

void FacadeWrapper::LoadNetwork(const wchar_t* fileName)
{
	return m_facade->LoadNetwork(fileName);
}

double FacadeWrapper::TestNetwork()
{
	return m_facade->Test();
}

void FacadeWrapper::LoadTestSet(const wchar_t* directory)
{
	return m_facade->LoadTestSet(directory);
}




